package Dao;

import java.sql.SQLException;
import java.util.Set;

import utl.Jdbc;

public class UserDao {
	Jdbc jdbc=new Jdbc();
	public void insert(User s) throws Exception{
		jdbc.insert(s);
	}
	public void delete(String userName) throws Exception {
		jdbc.delete(userName);
	}
	public void update(String userName,String passwd) throws Exception {
		jdbc.update(userName, passwd);
	}
	public Set<User> queryAll() throws Exception {
		return jdbc.queryAll();
	}
	public String query(String name) throws SQLException {
		return jdbc.query(name);
	}
}
